﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entities;
using DataAccessLayer;

namespace BusinessLogicLayer
{
    public class DiemDanhBLL
    {
        private DiemDanhDAL dal;

        public DiemDanhBLL()
        {
            try
            {
                dal = new DiemDanhDAL();
            }
            catch { throw; }
        }

        public List<DiemDanhEntity> getAll()
        {
            try
            {
                return dal.getAll();
            }
            catch { throw; }
        }

        public List<DiemDanhEntity> getByBuoiHocId(int _id)
        {
            try
            {
                return dal.getByBuoiHocId(_id);
            }
            catch { throw; }
        }

        public List<DiemDanhEntity> getByHocVien_KhoaHocId(string _maHocVien, int _maKhoaHoc)
        {
            try
            {
                return dal.getByHocVien_KhoaHocId(_maHocVien, _maKhoaHoc);
            }
            catch { throw; }
        }

        public DiemDanhEntity getByBuoiHoc_HocVien(int _maBuoiHoc, string _maHocVien)
        {
            try
            {
                return dal.getByBuoiHoc_HocVien(_maBuoiHoc, _maHocVien);
            }
            catch { throw; }
        }

        public int addDiemDanh(DiemDanhEntity _obj)
        {
            try
            {
                return dal.addDiemDanh(_obj);
            }
            catch { throw; }
        }

        public int deleteDiemDanh(int _maBuoiHoc, string _maHocVien)
        {
            try
            {
                return dal.deleteDiemDanh(_maBuoiHoc, _maHocVien);
            }
            catch { throw; }
        }
    }
}
